home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gSurvolPrec
- do_it()
- set gSurvolPrec to -1
- end
-
- on exitFrame
- global gLocLabel, gSensTrans
- if gLocLabel <> "TH:RN" then
- puppetTransition(gSensTrans, 2, 2, 1)
- end if
- go(label(gLocLabel))
- end
-
- on do_it
- global gSurvolAct, gSurvolPrec, gMaxBoutons, g1erSprNav, g1erSprLoc, gEtudAct, gEtatEtud, gTraduit
- if not (the mouseDown) then
- set MsCast to the mouseCast
- if MsCast > 0 then
- set gSurvolAct to 0
- repeat with monSpr = g1erSprNav + 5 to gMaxBoutons
- if rollOver(monSpr) and (the castNum of sprite monSpr <> 0) and the visible of sprite monSpr then
- set gSurvolAct to monSpr
- exit repeat
- end if
- end repeat
- if gSurvolAct <> gSurvolPrec then
- if gSurvolAct <> 0 then
- if (gSurvolAct = 25) or (gSurvolAct = 21) then
- curseur(1)
- else
- curseur(7)
- end if
- else
- curseur(-1)
- end if
- set gSurvolPrec to gSurvolAct
- updateStage()
- end if
- else
- curseur(-1)
- end if
- end if
- updateStage()
- end
-